package com.camel.base.feign;

import com.alibaba.fastjson.JSONObject;
import com.camel.core.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;

/**
 * @author 86183
 */
@FeignClient(value = "network", path = "net", contextId = "autoCall")
public interface AutoCallServiceService {

    /**
     * 计划列表
     * @param jsonObject
     * @return
     */
    @PostMapping("/tasks")
    Result list(@RequestBody JSONObject jsonObject);

    @PostMapping("/tasks/save")
    Result save(@RequestBody JSONObject jsonObject);

    @PostMapping("/tasks/del")
    Result del(@RequestBody JSONObject jsonObject);

    @PostMapping("/tasks/update")
    Result update(@RequestBody JSONObject jsonObject);
}
